package edu.sctu.zhoumengxue.day201505.day20150517.textone;


/**
 * Created by user12 on 2015/5/17.
 */
public class TextChild extends Abstraction implements Mouth{

    public Student[] studentarrays;
    public String name;
    public int age;

    public Student[] studentarray = new Student[studentarrays.length];

    public TextChild(Student[] studentarrays) {
        super(studentarrays);
        this.studentarray = studentarrays;

    }

    @Override
    public void system() {

        for (int i = 0; i < 10; i++) {

            if (studentarray[i].getNumber() > 10) {
                System.out.println(studentarray[i].getName() + "," + studentarray[i].getAge() + "," + studentarray[i].getSex() + "," + studentarray[i].getNumber());
            }

        }


    }


    @Override
    public void getSystem(String name) {
        this.name = name;
    }

    @Override
    public void getOut(int age) {
        this.age = age;
    }
}
